package service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import dao.EssayDao;
import entity.Essay;
import service.FrameService;

@Service
public class FrameServiceImpl implements FrameService {
	@Resource(name = "essayDao")
	private EssayDao essayDao;

	public EssayDao getEssayDao() {
		return essayDao;
	}

	public List<Essay> getPage(int num) {
		return essayDao.getList(num*7, 0, 7);
	}

	public void setEssayDao(EssayDao essayDao) {
		this.essayDao = essayDao;
	}

}
